package zhuyun.code.launcheractivity.view

import android.content.Context
import android.view.LayoutInflater
import android.widget.LinearLayout
import android.widget.PopupWindow
import kotlinx.android.synthetic.main.pop_login_by_phone_num.view.*
import zhuyun.code.launcheractivity.R

/**
 * @author: Administrator
 * @date: 2021/11/18
 */
class PopupWindowLoginByPhoneNum(val context: Context):PopupWindow() {
    init {
        val layoutInflater = context.getSystemService(Context.LAYOUT_INFLATER_SERVICE) as LayoutInflater
        val view = layoutInflater.inflate(R.layout.pop_login_by_phone_num,null)
        contentView = view
        width = LinearLayout.LayoutParams.MATCH_PARENT
        height = LinearLayout.LayoutParams.WRAP_CONTENT
        // 设置SelectPicPopupWindow弹出窗体可点击
        this.isFocusable = true
        contentView.tv_cancel.setOnClickListener {
            dismiss()
        }
        animationStyle = R.style.AnimBottom
//        // 实例化一个ColorDrawable颜色为白色
//        val dw = ColorDrawable(0
    }
}